import 'package:factoryside/bean/audit_acc_entity.dart';

auditAccEntityFromJson(AuditAccEntity data, Map<String, dynamic> json) {
	if (json['AccessoryID'] != null) {
		data.accessoryID = json['AccessoryID'].toString();
	}
	if (json['AccessoryAndServiceApplyState'] != null) {
		data.accessoryAndServiceApplyState = json['AccessoryAndServiceApplyState'].toString();
	}
	if (json['DeliverGoodsType'] != null) {
		data.deliverGoodsType = json['DeliverGoodsType'].toString();
	}
	if (json['DeliverGoodsTime'] != null) {
		data.deliverGoodsTime = json['DeliverGoodsTime'].toString();
	}
	if (json['RecipientType'] != null) {
		data.recipientType = json['RecipientType'].toString();
	}
	if (json['IsReturn'] != null) {
		data.isReturn = json['IsReturn'].toString();
	}
	if (json['SendAddress'] != null) {
		data.sendAddress = json['SendAddress'].toString();
	}
	if (json['AddressBack'] != null) {
		data.addressBack = json['AddressBack'].toString();
	}
	if (json['PostPayType'] != null) {
		data.postPayType = json['PostPayType'].toString();
	}
	if (json['OldReturnRequest'] != null) {
		data.oldReturnRequest = json['OldReturnRequest'].toString();
	}
	if (json['CheckRemarks'] != null) {
		data.checkRemarks = json['CheckRemarks'].toString();
	}
	if (json['ExpressNo'] != null) {
		data.expressNo = json['ExpressNo'].toString();
	}
	return data;
}

Map<String, dynamic> auditAccEntityToJson(AuditAccEntity entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['AccessoryID'] = entity.accessoryID;
	data['AccessoryAndServiceApplyState'] = entity.accessoryAndServiceApplyState;
	data['DeliverGoodsType'] = entity.deliverGoodsType;
	data['DeliverGoodsTime'] = entity.deliverGoodsTime;
	data['RecipientType'] = entity.recipientType;
	data['IsReturn'] = entity.isReturn;
	data['SendAddress'] = entity.sendAddress;
	data['AddressBack'] = entity.addressBack;
	data['PostPayType'] = entity.postPayType;
	data['OldReturnRequest'] = entity.oldReturnRequest;
	data['CheckRemarks'] = entity.checkRemarks;
	data['ExpressNo'] = entity.expressNo;
	return data;
}